home *** CD-ROM | disk | FTP | other *** search
/ Your Web Site Creator / Your Web Site Creator.iso / WebSite / data1.cab / Program_Executable_Files / scripts / modstart.dat < prev    next >
Encoding:
Text File  |  1999-01-13  |  23.2 KB  |  815 lines

  1. ; MODSTART.DAT  Site modify
  2. [Start]
  3. ; load the Web site variables
  4. BUSY 1
  5. ARGUMENT "Please hold on for a moment as the wizard reviews the family Web site you have made!"
  6.  
  7. SETTEMP saveParam = scriptparameter#0
  8.  
  9. LOADVARIABLES
  10. ARGUMENT changeextension( ProjectFile "VAR" )
  11.  
  12. LOADVARIABLES
  13. ARGUMENT modulepath( "WWDATA.VAR" )
  14. ARGUMENT nFamilies
  15. ARGUMENT nLoads
  16.  
  17. IF saveParam <> "NewSite"
  18.   SETTEMP nLoads = add( nLoads 1 )
  19.  
  20.   SAVEVARIABLES
  21.   ARGUMENT modulepath( "WWDATA.VAR" )
  22.   ARGUMENT nLoads
  23. ENDIF
  24.  
  25. SETTEMP ReEdit = 0
  26. SETTEMP ReAdd = 99
  27.  
  28. GOSUB CommonInit  ;in UTIL.DAT
  29. GOSUB InitAddMem  ;in NWMEMBER.DAT
  30. GOSUB InitFavVars  ;in FAVORITE.DAT
  31. GOSUB InitNotnVars  ;in NOTIONS.DAT
  32. GOSUB InitPastimeVars  ;in PASTIMES.DAT
  33. GOSUB InitActsVars   ; ACTS.DAT
  34. GOSUB InitNewsVars
  35.  
  36. SETTEMP scriptparameter#0 = saveParam
  37. SETTEMP callPosition = "" ;not NewSite
  38. BUSY 0
  39.  
  40. STARTWIZARD
  41.  
  42. SETTEMP temp = 1
  43. IF scriptparameter#0 = "NewSite"
  44.  GOSUB AllFamilyMembersEntered
  45.  IF dummy_sections > 0 || temp <> YY
  46.   SETTEMP temp2 = "You have just completed building your new site, but part of it is incomplete.\n\n"
  47.   IF temp <> YY
  48.     SETTEMP temp2 = temp2,"You did not fill out the detailed information for the family members.  "
  49.     SETTEMP temp = "also "
  50.   ELSE
  51.     SETTEMP temp = ""
  52.   ENDIF
  53.   IF dummy_sections > 0
  54.     SETTEMP temp2 = temp2,"You ",temp,"left ",dummy_sections," sections of the Web site incomplete."
  55.   ENDIF
  56.   SETTEMP temp2 = temp2,"  Would you like to fill these missing sections in now, or wait until later?"
  57.  
  58.   SETTEMP temp = 1
  59.   BACKSTOP
  60.   PAGE
  61.   WIZPIC wizpics\wizchoz3.gif
  62.   TYPE RADIOBUTTONSWITHTEXT
  63.   DESCRIPTION_RE temp2
  64.   NAME temp
  65.   ARGUMENT "&OK.  We can fill them in now."@1@"\n    FINISH THE MISSING\n          ITEMS NOW\nChoose this item and the wizard will prompt you for the missing pieces of your family Web site.\n\nYou can still skip any of the sections for now and come back to it later."
  66.   ARGUMENT "&Wait.  We can do those later."@0@"\n         DO IT LATER\nChoose this item if you just want to tinker around on your own.\n\nThe wizard will ask you again the next time he comes around."
  67.  
  68.  ENDIF ;dummy_secs or missing members
  69. ENDIF
  70.  
  71. IF temp = 1
  72.   GOSUB CheckMeetFamilyComplete
  73.  
  74.   IF dummy_sections > 0
  75.     TITLE Homepage Expert - Review Incomplete Sections
  76.     GOSUB CheckOtherMissingSections
  77.   ENDIF
  78. ENDIF
  79.  
  80. TITLE Homepage Expert - Changing Site Content
  81.  
  82. ;xxxxxxxxxxxxxxxx TURNAROUND POINT xxxxxxxxxxxxxxxxxx
  83. BACKSTOP BeginAgain
  84.  
  85. SETTEMP mod_prmpt = "                             The ",familyLastName," Family Web Site\nNow that your family Web site is built, you can do various things with it.  You can preview it to get an idea of how it looks, you can send the site to the Internet, or you can make modifications or enhancements to the site.  Choose what you would like to do next."
  86.  
  87. IF allSections = 1
  88.   SETTEMP c_prmt1 = "&Add a family member to the Web site"
  89.   SETTEMP c_arg1 = "   ADD ANOTHER PERSON\nThis allows you to add a new family member to your site.\n\nYou can use this to add a person or a pet!"
  90. ELSE
  91.   SETTEMP c_prmt1 = "&Add a section to the Web site"
  92.   SETTEMP c_arg1 = "   ADD A NEW SECTION\n   or ANOTHER PERSON\nThis allows you to add a new section to your Web site.\n\nFor example, you could add a family news section or one of the other sections.\n\nThis is also the way to go if you want to add a new family member to your site."
  93. ENDIF
  94.  
  95. SETTEMP c_arg1a = "        MAKE CHANGES\nThis allows you to make changes to a section of the Web site that is already there.\n\nYou could change the family newsletter or replace a family favorite section.\n\nYou could also replace information for a family member or add to his personal pages."
  96. SETTEMP c_arg2 = "\n            CHANGE THE\n         FAMILY PHOTO\n\nYou can supply a new family photo and the wizard will substitute it throughout the Web site."
  97. SETTEMP c_arg3 = "PREVIEW in the BROWSER\n\nWant to see how your Web site will look on the Internet?\n\nThe wizard will create HTML files from your Web site information and then load your browser and let you see what the site will look like on the Net.  The files remain on your computer."
  98. SETTEMP c_arg4 = "\n  PUBLISH THE WEB SITE\n\nAre you ready to put the ",familyLastName," family Web site out onto the Net?\n\nChoose this item to upload the files for your Web site directly to the Internet."
  99. SETTEMP c_arg5 = "\n       TRY A NEW LOOK!\nThis allows you to change the general styling of your family Web site, substituting different backgrounds and lettering for the Home Page and the main pages of your site.\n\nYou can choose from styles like 'Mean Green', 'Casual Blue' and 'Rainbow Sherbert'."
  100. SETTEMP c_prmt1a = "&Modify a section of the Web site"
  101. SETTEMP c_prmt2 = "&Change the family photo"
  102. SETTEMP c_prmt3 = "Pre&view the Web site in your browser"
  103. SETTEMP c_prmt4 = "&Upload the Web site files (Publish to the Net)"
  104. SETTEMP c_prmt5 = "&Restyle the Web site"
  105.  
  106. IF nFamilies < 2
  107.  PAGE
  108.  WIZPIC wizpics\wizchooz.gif
  109.  NAME inpL0
  110.  TYPE RADIOBUTTONSWITHTEXT
  111.  DESCRIPTION_RE mod_prmpt
  112.  ARGUMENT c_prmt1@1@c_arg1
  113.  ARGUMENT c_prmt1a@2@c_arg1a
  114.  ARGUMENT c_prmt2@3@c_arg2
  115.  ARGUMENT c_prmt5@4@c_arg5
  116.  ARGUMENT c_prmt3@5@c_arg3
  117.  ARGUMENT c_prmt4@6@c_arg4
  118.  CLOSE
  119.  NOPREVIOUS
  120. ELSE
  121.  PAGE
  122.  WIZPIC wizpics\wizchooz.gif
  123.  NAME inpL0
  124.  TYPE RADIOBUTTONSWITHTEXT
  125.  DESCRIPTION_RE mod_prmpt
  126.  ARGUMENT c_prmt1@1@c_arg1
  127.  ARGUMENT c_prmt1a@2@c_arg1a
  128.  ARGUMENT c_prmt2@3@c_arg2
  129.  ARGUMENT c_prmt5@4@c_arg5
  130.  ARGUMENT c_prmt3@5@c_arg3
  131.  ARGUMENT c_prmt4@6@c_arg4
  132.  ARGUMENT "&Work on a different family Web site"@7@"\n       A DIFFERENT SITE\n\nSince you have created ",nFamilies," different family Web sites, this selection will let you choose a different one to work on.\n\nYou can also use this choice to start a new site."
  133.  CLOSE
  134.  NOPREVIOUS
  135. ENDIF
  136.  
  137. IF inpL0 = 7
  138.   GOSUB SaveVariables
  139.   STOPWIZARD
  140.   RUNSCRIPT "ww.dat"
  141. ENDIF
  142.  
  143. IF inpL0 = 4
  144.   GOSUB ChangeSiteStyle  ;pick a new one
  145.   IF newStyleName <> ""
  146.     BUSY 1
  147.     ARGUMENT "Please wait a few moments as the wizard changes the styling on your site's main pages."
  148.  
  149.     STYLIST newStyleName
  150.     BUSY 0
  151.   ENDIF
  152. ENDIF
  153.  
  154. IF inpL0 = 1
  155.   IF allSections = 1
  156.     GOSUB AddNewMember
  157.   ELSE
  158.     SETTEMP method = "add"
  159.     GOSUB AddSection
  160.   ENDIF
  161. ENDIF
  162.  
  163. IF inpL0 = 2
  164.  SETTEMP method = "make changes to"
  165.  GOSUB EditSection
  166. ENDIF
  167.  
  168. IF inpL0 = 3
  169.  GOSUB ChangeFamilyPhoto
  170. ENDIF
  171.  
  172. IF inpL0 = 5
  173.   BUSY 1
  174.   ARGUMENT PrevwTxt ;set in UTIL.DAT
  175.  
  176.   PREVIEW
  177.   BUSY 0
  178. ENDIF
  179.  
  180. IF inpL0 = 6
  181.  IF hasGatheredFTPInfo <> YY
  182.    SETTEMP no_skipping = YY
  183.    GOSUB ServerBegin  ;ET7  ;must make sure they enter the information here
  184.  ENDIF
  185.  
  186.  SETTEMP temp = "\nMAKE SURE YOU ARE CONNECTED TO THE NET!\nBefore you can publish the files to the Internet, you must have your Internet connection active.  This means that you computer must be connected to the Internet through your modem.\n\nIf your computer is already connected to the Internet, press the Next button to continue.  If it is not connected, they make the connection first, and then press the Next button to continue.\n\nTo activate your Internet connection, "
  187.  IF Windows95 = NN
  188.   SETTEMP temp = temp," press Alt+Tab or Ctrl+Esc to access the Windows task manager or Program manager."
  189.  ELSE
  190.   SETTEMP temp = temp," press Alt+Tab to switch to a different program or open folder or press Ctrl+Esc to bring up the Start button list."
  191.  ENDIF
  192.  SETTEMP temp = temp,"\n\nThen, you can activate your Internet connection and proceed."
  193.  
  194.  BACKSTOP
  195.  PAGE
  196.  WIZPIC wizpics\wizcast2.gif
  197.  TYPE DESCRIPTION
  198.  DESCRIPTION_RE temp
  199.  
  200.  BUSY 1
  201.  ARGUMENT "Before the Web site is published, the wizard must construct HTML files to use on the Internet.  This could take a moment or two."
  202.  PUBLISH
  203.  BUSY 0
  204. ENDIF    ;if inpL0 = 6
  205.  
  206. UNWIND BeginAgain
  207.  
  208.  
  209. ;xxxxxxxxxxxxxxxxxxxxxxxxx ADD A SECTION xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  210. [AddSection]
  211. IF ReAdd = 99
  212.   GOSUB SetAddMode
  213. ENDIF
  214. SETTEMP sectionNameX = 1
  215. SETTEMP wizPic = "wizpics\wizhome.gif"
  216.  
  217. IF ReAdd > 3
  218.  BACKSTOP
  219.  IF ReAdd = 6
  220.   PAGE
  221.   WIZPIC_RE wizPic
  222.   NAME sectionNameX
  223.   TYPE RADIOBUTTONSWITHTEXT
  224.   DESCRIPTION_RE dlgPrmtX
  225.   ARGUMENT PAF1@1@PAT1
  226.   ARGUMENT PAF2@2@PAT2
  227.   ARGUMENT PAF3@3@PAT3
  228.   ARGUMENT PAF4@4@PAT4
  229.   ARGUMENT PAF5@5@PAT5
  230.   ARGUMENT PAF6@6@PAT6
  231.  ENDIF
  232.  
  233.  IF ReAdd = 5
  234.   PAGE
  235.   WIZPIC_RE wizPic
  236.   NAME sectionNameX
  237.   TYPE RADIOBUTTONSWITHTEXT
  238.   DESCRIPTION_RE dlgPrmtX
  239.   ARGUMENT PAF1@1@PAT1
  240.   ARGUMENT PAF2@2@PAT2
  241.   ARGUMENT PAF3@3@PAT3
  242.   ARGUMENT PAF4@4@PAT4
  243.   ARGUMENT PAF5@5@PAT5
  244.  ENDIF
  245.  
  246.  IF ReAdd = 4
  247.   PAGE
  248.   WIZPIC_RE wizPic
  249.   NAME sectionNameX
  250.   TYPE RADIOBUTTONSWITHTEXT
  251.   DESCRIPTION_RE dlgPrmtX
  252.   ARGUMENT PAF1@1@PAT1
  253.   ARGUMENT PAF2@2@PAT2
  254.   ARGUMENT PAF3@3@PAT3
  255.   ARGUMENT PAF4@4@PAT4
  256.  ENDIF
  257. ELSE    ;nFld<=3
  258.  IF ReAdd = 3
  259.   BACKSTOP
  260.   PAGE
  261.   WIZPIC_RE wizPic
  262.   NAME sectionNameX
  263.   TYPE RADIOBUTTONSWITHTEXT
  264.   DESCRIPTION_RE dlgPrmtX
  265.   ARGUMENT PAF1@1@PAT1
  266.   ARGUMENT PAF2@2@PAT2
  267.   ARGUMENT PAF3@3@PAT3
  268.  ENDIF
  269.  
  270.  IF ReAdd = 2
  271.   BACKSTOP
  272.   PAGE
  273.   WIZPIC_RE wizPic
  274.   NAME sectionNameX
  275.   TYPE RADIOBUTTONSWITHTEXT
  276.   DESCRIPTION_RE dlgPrmtX
  277.   ARGUMENT PAF1@1@PAT1
  278.   ARGUMENT PAF2@2@PAT2
  279.  ENDIF
  280. ENDIF    ;nFld>3
  281.  
  282. SETTEMP sectionName = arrayelement( dsptA sectionNameX )
  283.  
  284. IF sectionName = 1
  285.  GOSUB AddNewMember
  286. ENDIF
  287.  
  288. IF sectionName = 2
  289.   SETTEMP favoritesVarRoot = ""
  290.   SETTEMP pers_fam_mode = "family"
  291.   SETTEMP FavSectnExists = NN
  292.   GOSUB AddToFavorites  ;in favorite.dat
  293.   SETTEMP ReAdd = 99
  294. ENDIF
  295.  
  296. IF sectionName = 3
  297.   SETTEMP pastimeVarRoot = ""
  298.   SETTEMP PstmSectnExist = NN
  299.   SETTEMP pers_fam_mode = "family"
  300.   GOSUB AddToPastimes    ;in pastime.dat
  301.   SETTEMP ReAdd = 99
  302. ENDIF
  303.  
  304. IF sectionName = 4
  305.   SETTEMP notionVarRoot = ""
  306.   SETTEMP pers_fam_mode = "family"
  307.   SETTEMP NotnSectnExists = NN
  308.   GOSUB AddToNotions  ;in notions.dat
  309.   SETTEMP ReAdd = 99
  310. ENDIF
  311.  
  312. IF sectionName = 5
  313.  GOSUB AddToNews   ;in newspage.dat
  314.  SETTEMP ReAdd = 99
  315. ENDIF
  316.  
  317. IF sectionName = 6
  318.  GOSUB AddOrEditMailBook   ;in util.dat
  319.  SETTEMP ReAdd = 99
  320. ENDIF
  321. SETTEMP ReEdit = 0
  322.  
  323. IF hasFavorites = 1 && hasNotions = 1 && hasNews = 1 && hasPastimes = 1 && hasMailBook = 1 && dummy_sections < 1
  324.   SET allSections = 1
  325. ENDIF
  326.  
  327.  
  328. ;xxxxxxxxxxxxxx SET ADD MODE CHOICES xxxxxxxxxxxxxxxxxxx
  329. [SetAddMode]
  330. GOSUB SetCommonText
  331.  
  332. BUSY 1
  333. ARGUMENT wizText
  334.  
  335. IF nMembers < 11
  336.   SETTEMP PAF1 = "&Add a family member"
  337.   SETTEMP PAN1 = 1
  338.   SETTEMP PAT1 = "\n     ADD A FAMILY MEMBER\nChoose this item to add a new family member to your Web site."
  339. ELSE
  340.   SETTEMP PAF1 = ""
  341.   SETTEMP PAN1 = ""
  342.   SETTEMP PAT1 = ""
  343. ENDIF
  344.  
  345. IF hasFavorites = 0 || dummyFavorites = YY
  346.   SETTEMP PAF2 = "&Favorites section"
  347.   SETTEMP PAN2 = 2
  348.   SETTEMP PAT2 = favDescX
  349. ELSE
  350.   SETTEMP PAF2 = ""
  351.   SETTEMP PAN2 = ""
  352.   SETTEMP PAT2 = ""
  353. ENDIF
  354.  
  355. IF hasPastimes = 0 || dummyPastimes = YY
  356.   SETTEMP PAF3 = "&Interests section"
  357.   SETTEMP PAN3 = 3
  358.   SETTEMP PAT3 = pasDescX
  359. ELSE
  360.   SETTEMP PAF3 = ""
  361.   SETTEMP PAN3 = ""
  362.   SETTEMP PAT3 = ""
  363. ENDIF
  364.  
  365. IF hasNotions = 0 || dummyNotions = YY
  366.   SETTEMP PAF4 = "N&otions section"
  367.   SETTEMP PAN4 = 4
  368.   SETTEMP PAT4 = notnDescX
  369. ELSE
  370.   SETTEMP PAF4 = ""
  371.   SETTEMP PAN4 = ""
  372.   SETTEMP PAT4 = ""
  373. ENDIF
  374.  
  375. IF hasNews = 0 || dummyNews = YY
  376.   SETTEMP PAF5 = "Ne&ws section"
  377.   SETTEMP PAN5 = 5
  378.   SETTEMP PAT5 = newsDescX
  379. ELSE
  380.   SETTEMP PAF5 = ""
  381.   SETTEMP PAN5 = ""
  382.   SETTEMP PAT5 = ""
  383. ENDIF
  384.  
  385. IF hasMailBook = 0 || dummyMailBook = YY
  386.   SETTEMP PAF6 = "&E-Mail Directory"
  387.   SETTEMP PAN6 = 6
  388.   SETTEMP PAT6 = mailDescX
  389. ELSE
  390.   SETTEMP PAF6 = ""
  391.   SETTEMP PAN6 = ""
  392.   SETTEMP PAT6 = ""
  393. ENDIF
  394.  
  395. SETTEMP PAF7 = ""
  396. SETTEMP PAN7 = ""
  397. SETTEMP PAT7 = ""
  398.  
  399. SETTEMP fieldRootName = "PAF"
  400. SETTEMP nTotalFields = 7
  401. SETTEMP reflectRootName = "PAN"
  402. GOSUB CompactFields    ;squeeze out the empties
  403.  
  404. SETTEMP fieldRootName = "PAT"
  405. SETTEMP nTotalFields = 7
  406. GOSUB CompactFields
  407.  
  408. SETTEMP dsptA = ""
  409. SETTEMP arrayelement( dsptA 1 ) = PAN1
  410. SETTEMP arrayelement( dsptA 2 ) = PAN2
  411. SETTEMP arrayelement( dsptA 3 ) = PAN3
  412. SETTEMP arrayelement( dsptA 4 ) = PAN4
  413. SETTEMP arrayelement( dsptA 5 ) = PAN5
  414. SETTEMP arrayelement( dsptA 6 ) = PAN6
  415.  
  416. BUSY 0
  417.  
  418. SETTEMP ReAdd = subtract( nField 1 ) ;variable used in CompactFields
  419.  
  420.  
  421. ;xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  422. ;xxxxxxxxxxxxxxxxxxxx CHANGE CONTENT OF A SECTION xxxxxxxxxxxxxxxxxxxxx
  423. [EditSection]
  424.  
  425. IF ReEdit = 0
  426.  GOSUB SetChgMode
  427. ENDIF
  428.  
  429. SETTEMP sectionNameX = 1
  430. SETTEMP wizPic = "wizpics\wizhome.gif"
  431. IF ReEdit > 3
  432.  BACKSTOP
  433.  IF ReEdit = 6
  434.   PAGE
  435.   WIZPIC_RE wizPic
  436.   NAME sectionNameX
  437.   TYPE RADIOBUTTONSWITHTEXT
  438.   DESCRIPTION_RE dlgPrmtX
  439.   ARGUMENT PRF1@1@PRT1
  440.   ARGUMENT PRF2@2@PRT2
  441.   ARGUMENT PRF3@3@PRT3
  442.   ARGUMENT PRF4@4@PRT4
  443.   ARGUMENT PRF5@5@PRT5
  444.   ARGUMENT PRF6@6@PRT6
  445.  ENDIF
  446.  
  447.  IF ReEdit = 5
  448.   PAGE
  449.   WIZPIC_RE wizPic
  450.   NAME sectionNameX
  451.   TYPE RADIOBUTTONSWITHTEXT
  452.   DESCRIPTION_RE dlgPrmtX
  453.   ARGUMENT PRF1@1@PRT1
  454.   ARGUMENT PRF2@2@PRT2
  455.   ARGUMENT PRF3@3@PRT3
  456.   ARGUMENT PRF4@4@PRT4
  457.   ARGUMENT PRF5@5@PRT5
  458.  ENDIF
  459.  
  460.  IF ReEdit = 4
  461.   PAGE
  462.   WIZPIC_RE wizPic
  463.   NAME sectionNameX
  464.   TYPE RADIOBUTTONSWITHTEXT
  465.   DESCRIPTION_RE dlgPrmtX
  466.   ARGUMENT PRF1@1@PRT1
  467.   ARGUMENT PRF2@2@PRT2
  468.   ARGUMENT PRF3@3@PRT3
  469.   ARGUMENT PRF4@4@PRT4
  470.  ENDIF
  471. ELSE    ;nFld<=3
  472.  IF ReEdit = 3
  473.   BACKSTOP
  474.   PAGE
  475.   WIZPIC_RE wizPic
  476.   NAME sectionNameX
  477.   TYPE RADIOBUTTONSWITHTEXT
  478.   DESCRIPTION_RE dlgPrmtX
  479.   ARGUMENT PRF1@1@PRT1
  480.   ARGUMENT PRF2@2@PRT2
  481.   ARGUMENT PRF3@3@PRT3
  482.  ENDIF
  483.  
  484.  IF ReEdit = 2
  485.   BACKSTOP
  486.   PAGE
  487.   WIZPIC_RE wizPic
  488.   NAME sectionNameX
  489.   TYPE RADIOBUTTONSWITHTEXT
  490.   DESCRIPTION_RE dlgPrmtX
  491.   ARGUMENT PRF1@1@PRT1
  492.   ARGUMENT PRF2@2@PRT2
  493.  ENDIF
  494. ENDIF    ;nFld>3
  495.  
  496. SETTEMP sectionName = arrayelement( dspt sectionNameX )
  497.  
  498. IF sectionName = 1
  499.  GOSUB EditAMember
  500. ENDIF
  501.  
  502. IF sectionName = 2
  503.   SETTEMP favoritesVarRoot = ""         ;not used for family favs
  504.   SETTEMP pers_fam_mode = "family"
  505.   IF dummyFavorites = YY
  506.     SETTEMP FavSectnExists = NN
  507.     GOSUB AddToFavorites  ;in favorite.dat
  508.     SETTEMP ReAdd = 99
  509.   ELSE
  510.     GOSUB ReplaceFavorites
  511.  
  512.     IF FavBuild <> ""
  513.       BUSY  1
  514.       ARGUMENT "Please hold on now while the wizard constructs the new favorites pages!  Be patient."
  515.       SETTEMP favoritesVarRoot = ""
  516.       GOSUB BuildFamFavoritesPages
  517.       BUILDLINKS
  518.       SETTEMP FavBuild = ""
  519.       BUSY 0
  520.     ENDIF
  521.   ENDIF
  522. ENDIF
  523.  
  524. IF sectionName = 3
  525.   SETTEMP pers_fam_mode = "family"
  526.   SETTEMP pastimeVarRoot = ""
  527.   IF dummyPastimes = YY
  528.     SETTEMP PstmSectnExist = NN
  529.     GOSUB AddToPastimes    ;in pastime.dat
  530.     SETTEMP ReAdd = 99
  531.   ELSE
  532.     SETTEMP PastimesBuild = ""
  533.     GOSUB ReplacePastimeOrActivity    ;in pastime.dat
  534.     IF PastimesBuild <> ""
  535.       GOSUB BuildPastimePages
  536.       BUILDLINKS
  537.       SETTEMP PastimesBuild = ""
  538.     ENDIF
  539.   ENDIF
  540. ENDIF
  541.  
  542. IF sectionName = 4
  543.   SETTEMP notionVarRoot = ""         ;not used for family notions
  544.   SETTEMP pers_fam_mode = "family"
  545.   IF dummyNotions = YY
  546.     SETTEMP NotnSectnExists = NN
  547.     GOSUB AddToNotions  ;in notions.dat
  548.     SETTEMP ReAdd = 99
  549.   ELSE
  550.     GOSUB ReplaceANotion
  551.     IF NotionBuild <> ""
  552.       BUSY  1
  553.       ARGUMENT "Please hold on now while the wizard constructs the new pages!  Be patient."
  554.       GOSUB BuildFamNotionPages
  555.       BUILDLINKS
  556.       SETTEMP NotionBuild = ""
  557.       BUSY 0
  558.     ENDIF
  559.   ENDIF
  560. ENDIF
  561.  
  562. IF sectionName = 5
  563.  GOSUB AddToNews        ;in newspage.dat
  564. ENDIF
  565.  
  566. IF sectionName = 6
  567.  GOSUB AddOrEditMailBook   ;in emails.dat
  568. ENDIF
  569.  
  570.  
  571. ;xxxxxxx SET CHANGE MODE CHOICES xxxxxxxxxxx
  572. [SetChgMode]
  573. GOSUB SetCommonText
  574.  
  575. BUSY 1
  576. ARGUMENT wizText
  577.  
  578. SETTEMP PRS = ""    ;prompt array
  579. SETTEMP DIS = ""    ;dispatch array
  580. SETTEMP TXA = ""    ;text array
  581.  
  582. SETTEMP PRF1 = "Change info for a family &member"
  583. SETTEMP PRN1 = 1
  584. SETTEMP PRT1 = "\n    FAMILY MEMBER INFO\nChoose this item to change the information for one of the family members already in your Web site.\n\nYou also use this item to add to the personal pages for a family member, or to make changes to those pages."
  585.  
  586. IF hasFavorites = 1
  587.   SETTEMP PRF2 = "&Favorites section"
  588.   SETTEMP PRN2 = 2
  589.   SETTEMP PRT2 = favDescX
  590. ELSE
  591.   SETTEMP PRF2 = ""
  592.   SETTEMP PRN2 = ""
  593.   SETTEMP PRT2 = ""
  594. ENDIF
  595.  
  596. IF hasPastimes = 1
  597.   SETTEMP PRF3 = "&Interests section"
  598.   SETTEMP PRN3 = 3
  599.   SETTEMP PRT3 = pasDescX
  600. ELSE
  601.   SETTEMP PRF3 = ""
  602.   SETTEMP PRN3 = ""
  603.   SETTEMP PRT3 = ""
  604. ENDIF
  605.  
  606. IF hasNotions = 1
  607.   SETTEMP PRF4 = "N&otions section"
  608.   SETTEMP PRN4 = 4
  609.   SETTEMP PRT4 = notnDescX
  610. ELSE
  611.   SETTEMP PRF4 = ""
  612.   SETTEMP PRN4 = ""
  613.   SETTEMP PRT4 = ""
  614. ENDIF
  615.  
  616. IF hasNews = 1
  617.   SETTEMP PRF5 = "Ne&ws section"
  618.   SETTEMP PRN5 = 5
  619.   SETTEMP PRT5 = newsDescX
  620. ELSE
  621.   SETTEMP PRF5 = ""
  622.   SETTEMP PRN5 = ""
  623.   SETTEMP PRT5 = ""
  624. ENDIF
  625.  
  626. IF hasMailBook = 1
  627.   SETTEMP PRF6 = "&E-Mail Directory"
  628.   SETTEMP PRN6 = 6
  629.   SETTEMP PRT6 = mailDescX
  630. ELSE
  631.   SETTEMP PRF6 = ""
  632.   SETTEMP PRN6 = ""
  633.   SETTEMP PRT6 = ""
  634. ENDIF
  635.  
  636. SETTEMP PRF7 = ""
  637. SETTEMP PRN7 = ""
  638. SETTEMP PRT7 = ""
  639.  
  640. SETTEMP fieldRootName = "PRF"
  641. SETTEMP nTotalFields = 7
  642. SETTEMP reflectRootName = "PRN"
  643. GOSUB CompactFields    ;squeeze out the empties
  644.  
  645. SETTEMP fieldRootName = "PRT"
  646. SETTEMP nTotalFields = 7
  647. GOSUB CompactFields
  648.  
  649. SETTEMP dspt = ""
  650. SETTEMP arrayelement( dspt 1 ) = PRN1
  651. SETTEMP arrayelement( dspt 2 ) = PRN2
  652. SETTEMP arrayelement( dspt 3 ) = PRN3
  653. SETTEMP arrayelement( dspt 4 ) = PRN4
  654. SETTEMP arrayelement( dspt 5 ) = PRN5
  655. SETTEMP arrayelement( dspt 6 ) = PRN6
  656.  
  657. SETTEMP ReEdit = subtract( nField 1 ) ;variable used in CompactFields
  658. BUSY 0
  659.  
  660.  
  661.  
  662. ;xxxxxxxxxxxxxxxxxxx REPLACE FAMILY PHOTO xxxxxxxxxxxxxxxxxxx
  663. [ChangeFamilyPhoto]    ; get new familyPhoto
  664. SETTEMP junk = "The ",familyLastName," Family Photo"
  665.  
  666. COPY newPhoto = familyPhoto
  667. IF havePhotographs = NN
  668.   SETTEMP temp = NN
  669.   BACKSTOP
  670.   PAGE
  671.   TYPE RADIOBUTTONS
  672.   WIZPIC wizpics\wizphoto.gif
  673.   DESCRIPTION Do you have digital photographs yet?  The last time the wizard asked, you did not.\n\nIf you now have photos that have been scanned or taken with a digital camera, choose YES to pick one now.  If you don't have digital photos, choose NO to pick from the standard pictures.
  674.   NAME temp
  675.   ARGUMENT "No. I &don't have digital photos yet"@No
  676.   ARGUMENT "&Yes.  I have my own photos now"@Yes
  677.  
  678.   SET havePhotographs = temp
  679. ENDIF
  680.  
  681. IF havePhotographs = NN
  682.   BACKSTOP
  683.   GOSUB GetFamPlaceholderPix
  684. ELSE
  685.   BACKSTOP
  686.   PAGE
  687.   NOSPELLCHECK
  688.   WIZPIC wizpics\wizfm128.gif
  689.   DESCRIPTION_RE "NEW HOME PAGE PHOTO        Pick a new picture to appear on the home page, and other family pages in the site.  It can be decorative (not a family photo), a photo of the whole family, or a picture of certain 'featured' family members.\n\nIdeally, it should show the entire family, but you may want to use a photo showing only the children, as an example."
  690.   TYPE PICTUREANDCAPTION
  691.   NAME newPhoto
  692.   PROMPT 
  693.   ARGUMENT @junk
  694. ENDIF
  695.  
  696. IF newPhoto <> familyPhoto
  697.   BUSY 1
  698.   ARGUMENT "Please wait a moment while the wizard changes your family photo throughout the Web site."
  699.   SETTYPE newPhoto = normal
  700.   SETTYPE familyPhoto = normal
  701.   REPLACEPICTURE familyPhoto newPhoto 300 300
  702.   COPY familyPhoto = newPhoto
  703.   ;now update the main file
  704.   LOADVARIABLES
  705.   ARGUMENT modulepath( "WWDATA.VAR" )
  706.   ARGUMENT nFamilies
  707.   ARGUMENT FamNameList
  708.   ARGUMENT FamPhotoList
  709.   ARGUMENT ProjNameList
  710.   SETTEMP temp = nFamilies
  711.   GOSUB LocateInList
  712.   COPY arrayelement( FamPhotoList temp ) = familyPhoto
  713.   SAVEVARIABLES
  714.   ARGUMENT modulepath( "WWDATA.VAR" )
  715.   ARGUMENT FamPhotoList
  716.   BUSY 0
  717. ENDIF
  718.  
  719. [LocateInList]
  720. IF arrayelement( ProjNameList temp ) <> ProjectFile
  721.   IF temp > 1
  722.     SETTEMP temp = subtract( nFamilies 1 )
  723.     GOTO LocateInList
  724.   ENDIF
  725. ENDIF
  726.  
  727.  
  728. ;xxxxxxxxxxxxx   variables for add/change mode xxxxxxxxxxxxxxxxxxxx
  729. [SetCommonText]
  730. SETTEMP wizText = "Hold on for a moment while the wizard takes stock of your present Web site."
  731. SETTEMP favDescX = "\n      FAMILY FAVORITES\nThis is a section on your family Web site to share some of your family's favorite things with others by telling about them.\n\nYou can include your favorite places to shop, dine, and vacation."
  732. SETTEMP pasDescX = "\n      FAMILY INTERESTS\nIn this section you enter information about how your family members like to spend their time.\n\nThis section actually includes both family pastimes and family activities."
  733. SETTEMP notnDescX = "       FAMILY NOTIONS!!\nIn this section you can share your views (political and otherwise) and outlooks with others.  Notions are chosen from categories such as 'Humor', 'Political' and 'Generic'.\n\nHere's the spot to spread your opinions and stories across the Internet!"
  734. SETTEMP newsDescX = "\n     THE FAMILY NEWS\nA great use of the family Web site is to communicate with your family and friends in an easy and convenient way.\n\nThis section can contain a newsletter and various 'announcements' so you can spread the news easily."
  735. SETTEMP mailDescX = "\n     FAMILY E-MAIL LIST\nThis section is a page that lists names and E-Mail addresses for your family and friends.\n\nIt's a handy way for everyone to stay in touch, and you make it possible."
  736. SETTEMP dlgPrmtX = "Choose a section of your Web site to ",method," from those listed below.\n\nYou can click on the radio button to show a brief description for that section in the box at the right." 
  737.  
  738.  
  739.  
  740. ;xxxxxxxxxxxxxxxxxxxxx  SEE IF MEET FAMILY SECTION IS COMPETE AND FINISH xxxxxxxxxxxxxxxxxxxx
  741. [CheckMeetFamilyComplete]
  742. ; check whether all family members have had information entered
  743. GOSUB AllFamilyMembersEntered
  744. IF temp <> YY
  745.   TITLE Homepage Expert - Incomplete Family Members
  746.   SETTEMP temp = YY
  747.  
  748.   BACKSTOP
  749.   PAGE
  750.   WIZPIC wizpics\wizchooz.gif
  751.   NAME temp
  752.   TYPE RADIOBUTTONS
  753.   DESCRIPTION There are some family members with incomplete pages.  You can fill those in now if you like.  Or you can move on to something else and do that later.\n\nDo you want to fill in the remaining family member information now?
  754.   ARGUMENT "&Enter family member information"@Yes
  755.   ARGUMENT "&Skip this for now"@No
  756.  
  757.   IF temp = YY
  758.    SETTEMP caption = "Select a family member from the list shown below.  The list shows only those with incomplete information."
  759.  
  760.    ; pick a family member to do
  761.    GOSUB PickAFamilyMemberWithNoInfo ; nSel = index of family member to get
  762.    GOSUB SetMemberTempVars         ;set the vars we do have
  763.  
  764.    GOSUB InputMemberDetails
  765.  
  766.    ; build page for this member
  767.     IF PageOrSite = "page"
  768.      SETTEMP plural = ""
  769.    ELSE
  770.      SETTEMP plural = "s"
  771.    ENDIF
  772.  
  773.    BUSY 1
  774.    ARGUMENT "The wizard will now build the page",plural," for ",name,".  Please be patient for a moment."
  775.    GOSUB BuildNthFamilyMember
  776.    BUSY 0
  777.    GOTO CheckMeetFamilyComplete  ;loop around
  778.   ENDIF
  779. ENDIF
  780.  
  781.  
  782.  
  783. [CheckOtherMissingSections]
  784. ; see if any other sections were incomplete and offer to do them
  785. IF dummyFavorites = YY
  786.    BACKSTOP BeforeMakingFavorites
  787.    GOSUB OfferToMakeFavorites
  788.    SETBACKSTOP BeforeMakingFavorites
  789. ENDIF
  790.  
  791. IF dummyPastimes = YY
  792.    BACKSTOP BeforeMakingPastimes
  793.    GOSUB OfferToMakePastimes
  794.    SETBACKSTOP BeforeMakingPastimes
  795. ENDIF
  796.  
  797. IF dummyNotions = YY
  798.    BACKSTOP BeforeMakingNotions
  799.    GOSUB OfferToMakeNotions
  800.    SETBACKSTOP BeforeMakingNotions
  801. ENDIF
  802.  
  803. IF dummyNews = YY
  804.    BACKSTOP BeforeMakingNews
  805.    GOSUB OfferToMakeNews
  806.    SETBACKSTOP BeforeMakingNews
  807. ENDIF
  808.  
  809. IF dummyMailBook = YY
  810.    BACKSTOP BeforeMakingMB
  811.    GOSUB OfferToMakeMailBook
  812. ENDIF
  813.  
  814. #INCLUDE scripts\offers.dat
  815.